home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Cross Platform / QuickTime 4.1.2 Windows SDK / CIncludes / FileTransferTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-04-12  |  2.6 KB  |  145 lines  |  [TEXT/R*ch]

  1. /*
  2.      File:        FileTransferTools.h
  3.  
  4.      Contains:    CommToolbox File Transfer Tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    QuickTime 4.1
  8.  
  9.      Copyright:    (c) 1988-1999 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __FILETRANSFERTOOLS__
  18. #define __FILETRANSFERTOOLS__
  19.  
  20. #ifndef __CONDITIONALMACROS__
  21.     #include <ConditionalMacros.h>
  22. #endif
  23.  
  24. #ifndef __DIALOGS__
  25.     #include <Dialogs.h>
  26. #endif
  27.  
  28. #ifndef __FILETRANSFERS__
  29.     #include <FileTransfers.h>
  30. #endif
  31.  
  32.  
  33.  
  34.  
  35. #if PRAGMA_ONCE
  36. #pragma once
  37. #endif
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42.  
  43. #if PRAGMA_IMPORT
  44. #pragma import on
  45. #endif
  46.  
  47. #if PRAGMA_STRUCT_ALIGN
  48.     #pragma options align=mac68k
  49. #elif PRAGMA_STRUCT_PACKPUSH
  50.     #pragma pack(push, 2)
  51. #elif PRAGMA_STRUCT_PACK
  52.     #pragma pack(2)
  53. #endif
  54.  
  55. #if CALL_NOT_IN_CARBON
  56. enum {
  57.                                                                 /* DEFs */
  58.     fdefType                    = FOUR_CHAR_CODE('fdef'),
  59.     fsetType                    = FOUR_CHAR_CODE('fset'),
  60.     fvalType                    = FOUR_CHAR_CODE('fval'),
  61.     flocType                    = FOUR_CHAR_CODE('floc'),
  62.     fscrType                    = FOUR_CHAR_CODE('fscr'),
  63.     fbndType                    = FOUR_CHAR_CODE('fbnd'),
  64.     fverType                    = FOUR_CHAR_CODE('vers')
  65. };
  66.  
  67. enum {
  68.                                                                 /* control */
  69.     ftInitMsg                    = 0,
  70.     ftDisposeMsg                = 1,
  71.     ftSuspendMsg                = 2,
  72.     ftResumeMsg                    = 3,
  73.     ftMenuMsg                    = 4,
  74.     ftEventMsg                    = 5,
  75.     ftActivateMsg                = 6,
  76.     ftDeactivateMsg                = 7,
  77.     ftGetErrorStringMsg            = 8,
  78.     ftAbortMsg                    = 52,
  79.     ftStartMsg                    = 100,
  80.     ftExecMsg                    = 102,
  81.     ftSendMsg                    = 103,
  82.     ftReceiveMsg                = 104
  83. };
  84.  
  85. enum {
  86.                                                                 /* setup */
  87.     ftSpreflightMsg                = 0,
  88.     ftSsetupMsg                    = 1,
  89.     ftSitemMsg                    = 2,
  90.     ftSfilterMsg                = 3,
  91.     ftScleanupMsg                = 4
  92. };
  93.  
  94. enum {
  95.                                                                 /* validate */
  96.     ftValidateMsg                = 0,
  97.     ftDefaultMsg                = 1
  98. };
  99.  
  100. enum {
  101.                                                                 /* scripting */
  102.     ftMgetMsg                    = 0,
  103.     ftMsetMsg                    = 1
  104. };
  105.  
  106. enum {
  107.                                                                 /* localization */
  108.     ftL2English                    = 0,
  109.     ftL2Intl                    = 1
  110. };
  111.  
  112.  
  113. struct FTSetupStruct {
  114.     DialogPtr                         theDialog;                    /* the dialog form the application */
  115.     short                             count;                        /* first appended item */
  116.     Ptr                             theConfig;                    /* the config record to setup */
  117.     short                             procID;                        /* procID of the tool */
  118. };
  119. typedef struct FTSetupStruct            FTSetupStruct;
  120.  
  121. typedef FTSetupStruct *                    FTSetupPtr;
  122. #endif  /* CALL_NOT_IN_CARBON */
  123.  
  124.  
  125. #if PRAGMA_STRUCT_ALIGN
  126.     #pragma options align=reset
  127. #elif PRAGMA_STRUCT_PACKPUSH
  128.     #pragma pack(pop)
  129. #elif PRAGMA_STRUCT_PACK
  130.     #pragma pack()
  131. #endif
  132.  
  133. #ifdef PRAGMA_IMPORT_OFF
  134. #pragma import off
  135. #elif PRAGMA_IMPORT
  136. #pragma import reset
  137. #endif
  138.  
  139. #ifdef __cplusplus
  140. }
  141. #endif
  142.  
  143. #endif /* __FILETRANSFERTOOLS__ */
  144.  
  145.